home *** CD-ROM | disk | FTP | other *** search
/ Eagles Nest BBS 8 / Eagles_Nest_Mac_Collection_Disc_8.TOAST / Developer Tools⁄Additions / MacUserProj / MacUser Projects / June / 2GenApp Hdr / AppConstants.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-25  |  2.2 KB  |  75 lines  |  [TEXT/KAHL]

  1. /* *****************************************************************************
  2.     FILE:             AppConstants.h
  3.     
  4.     DESCRIPTION:     Application global constants
  5.  
  6.     AUTHOR:            Kurt W.G. Matthies
  7.         
  8.     Copyright © 1990 by Code of the West, Inc., All Rights Reserved.
  9.  
  10.     
  11.     Revision History:
  12.     ==========================================================
  13.     4.24.90    -    June 1990 MacUser Release - multiple windows
  14.     3.30.90 -     May 1990 MacUser Release
  15.     ==========================================================
  16.  
  17.    ***************************************************************************** */
  18.  
  19. #ifndef _AppConstants_
  20. #define _AppConstants_
  21.  
  22. /* 
  23.     define MAX and MIN as macros, if not already defined 
  24.     The heavy use of parenthesis allows either x or y to be an expression
  25. */
  26. #ifndef MIN
  27. #define    MIN(x,y)    (((x) > (y)) ? (y) : (x))
  28. #endif
  29.  
  30. #ifndef MAX
  31. #define MAX(x,y)    (((x) < (y)) ? (y) : (x))
  32. #endif
  33.  
  34. /* ----------------------  Window/Scroll Bar stuff  ----------------------------- */
  35.  
  36. #define        kScrollBarSize        16
  37. #define        kControlMax            1000
  38. #define        kHScrollTag            1
  39. #define        kVScrollTag            2
  40.  
  41. #define        kMaxOpenDocs        32
  42.  
  43. /* -----------------------  Document attributes  ------------------------------- */
  44.  
  45. #define    kDocDirty    0x0001        /* the-doc-has-been-changed flag */
  46. /* a macro to test this bit in the doc */
  47. #define    ISDIRTY(d)    ((((DocPtr)d)->attributes & kDocDirty) ? true : false)
  48.  
  49. /* --------------------   Dialog Resources  ------------------------------------ */
  50.  
  51. #define    kSetButtonID            1        /* used in all dialogs: button 1 is OK */
  52. #define    kCancelButtonID            2        /* button 2 is Cancel */
  53.  
  54. #define    kSaveChangeDLOG            64        /* save changes on closing dialog */
  55. #define    kSaveChangeOK            1
  56. #define    kSaveChangeDont            2
  57. #define    kSaveChangeCancel        4
  58.  
  59.  
  60. #define kNotEnufMem                256        /* alert IDs */
  61. #define    kUnknownMach            257
  62.  
  63. #define kAboutBoxDLOG            600
  64. #define    kAboutMemBox              2
  65.  
  66. #define    kDebugMsgDLOG            1000    /* a general message dialog used for error reporting */
  67. #define    kDebugMsgCancel            2        /* in MiscUtil.c: pDebugStr() */
  68. #define    kDebugMsgExit            3
  69. #define    kDebugMsgOKOutline        7
  70.  
  71. #endif
  72.  
  73. /* ===============================  EOF  =======================================
  74.     Copyright © 1990 by Code of the West, Inc. All Rights Reserved.
  75. ================================================================================ */